home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Internet / FeedDemon / FeedDemonInstall.exe / {app} / Data / Styles / postenclosure.inc < prev    next >
Encoding:
Text File  |  2009-06-10  |  1.5 KB  |  26 lines

  1. <xsl:if test="enclosure">
  2.     <div class="postenclosure">
  3.         <xsl:for-each select="enclosure">
  4.             <xsl:variable name="enclosurelink" select="@url"/>
  5.             <xsl:variable name="enclosuretype" select="@type"/>
  6.             <xsl:variable name="enclosureindex" select="@index"/>
  7.             
  8.             <xsl:if test="$enclosureindex != 0">   |   </xsl:if>
  9.  
  10.             <xsl:choose>
  11.                 <!-- !! 3.0 - localFile will be set to filename of downloaded enclosure if it exists -->
  12.                 <xsl:when test="@localFile">
  13.                     <xsl:if test="@fileIcon"><img src="$IMAGEDIR$fileicons\{@fileIcon}" class="fileicon" style="margin-right: 6px; filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=1,OffY=1,Color=silver)" align="absmiddle" /></xsl:if>
  14.                     <span class="postenclosurename" style="font-size:larger;">
  15.                         <a href="fdaction:?action=openenclosure&feedid={$feedId}&postid={$postId}&localFile={@localFile}"><xsl:value-of select="@shortName"/></a>
  16.                     </span>
  17.                 </xsl:when>
  18.                 <xsl:otherwise>
  19.                     <a href="fdaction:?action=downloadenclosure&feedid={$feedId}&postid={$postId}&url={$enclosurelink};&index={$enclosureindex}"><img src="$IMAGEDIR$enclosure.gif" class="icon" align="absmiddle" /></a>
  20.                     <span class="postenclosurename"><xsl:value-of select="@shortName"/></span>
  21.                      ( <a href="fdaction:?action=downloadenclosure&feedid={$feedId}&postid={$postId}&url={$enclosurelink};&index={$enclosureindex}">$LANG_CONST(S_NewsLblDownloadEnclosure)$</a> )
  22.                 </xsl:otherwise>
  23.             </xsl:choose>
  24.         </xsl:for-each>
  25.     </div>
  26. </xsl:if>